package text;

public class text69 {

    public class Solution {
        public int Sum_Solution(int n) {
            int sum=n;


            boolean b=(n>0)&&(sum=n+Sum_Solution(n-1))>0;
            return sum;

        }
    }
    public static int sum(int n)
    {
        if(n==0)
        {
            return 0;
        }
        return sum(n-1)+n;
    }
    public static void main(String[] args) {
        int m=sum(6);
        System.out.println(m);

    }
}
